package cn.smileyan.demos.entity;

import cn.smileyan.demos.functions.CountTriggerCondition;
import lombok.Data;

@Data
public class PieceData implements CountTriggerCondition {
    /**
     * 编号
     */
    private String id;

    /**
     * 聚合大小
     */
    private Integer size;

    /**
     * 当前索引
     */
    private Integer index;

    /**
     * 具体的值
     */
    private Double value;

    @Override
    public int triggerSize() {
        return size;
    }

    @Override
    public String triggerId() {
        return id;
    }
}
